package com.seanliao.nav.common.domain.dto;

import com.seanliao.nav.common.domain.dto.valid.Add;
import com.seanliao.nav.common.domain.dto.valid.Edit;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * 角色DTO
 *
 * @author Sean_Liao
 */
@Data
public class RoleDTO {

    /* 角色id */
    @NotNull(groups = Edit.class, message = "角色id不能为空")
    private Long id;

    /* 角色名称 */
    @NotNull(groups = Add.class)
    private String name;

    /* 角色标识 */
    @NotNull(groups = Add.class)
    private String code;

    /* 描述 */
    private String description;

    /* 启用状态 */
    @NotNull(groups = Add.class)
    private Boolean isBan;

    /* 排序 */
    @NotNull(groups = Add.class)
    private Integer sort;

}
